#ifndef SINGLETON_H
#define SINGLETON_H

template <class T>
class Singleton
{
public:
	static T* Instance()
	{
		static T* t = new T;
		return t;
	}
	static void Kill()
	{
		delete Instance();
	}
};

#endif
